package com.example.shoppingmall.service;

import com.example.shoppingmall.dao.SysLogMapper;
import com.example.shoppingmall.pojo.SysLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class SysLogService{
    @Autowired
    SysLogMapper sysLogMapper;

    public int save(SysLog sysLog) {
        return sysLogMapper.save(sysLog);
    }

    public List<SysLog> getLogAll(String utime,Integer pageno, Integer pageSize){
        return sysLogMapper.getLogAll(utime,pageno, pageSize);
    }

    public int logcount(String utime){
        return sysLogMapper.logcount(utime);
    }
}
